|
|
|
|
|
|
|
The following sections list two-, three-, and four-dimensional transformation matrices. You can use them to manipulate points represented by homogeneous coordinates. These sections also include instructions for performing some of the more complicated combined operations such as rotation around an arbitrary line. The final section gives the formulas for converting from spherical to Cartesian coordinates. |
|
|
|
|
|
|
|
|
Two-Dimensional Transformations |
|
|
|
|
|
|
|
|
Translation by distances Tx and Ty: |
|
|
|
|
|
|
|
|
Scaling by scale factors Sx and Sy: |
|
|
|
|
|
|
|
|
Reflection across a coordinate axis: |
|
|
|
|
|
|
|
|
Rotation through angle q around the origin: |
|
|
|
|
|
|
|
|
Three-Dimensional Transformations |
|
|
|
|
|
|
|
|
Translation by distances Tx, Ty, and Tz: |
|
|
|
|
|